package com.example.androidcomplete0102;

import com.example.androidcomplete0102.ch11.Ch11_Main;
import com.example.androidcomplete0102.ch12.Ch12_Main;
import com.example.androidcomplete0102.ch13.Ch13_Main;
import com.example.androidcomplete0102.ch14.Ch14_Main;
import com.example.androidcomplete0102.ch15.Ch15_Main;
import com.example.androidcomplete0102.ch16.Ch16_Main;
import com.example.androidcomplete0102.ch17.Ch17_Main;
import com.example.androidcomplete0102.ch18.Ch18_Main;
import com.example.androidcomplete0102.ch19.Ch19_Main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class ActivityMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		
		switch(v.getId()){
		case R.id.main_btn01:
			intent = new Intent(this, Ch11_Main.class);
			break;
		case R.id.main_btn02:
			intent = new Intent(this, Ch12_Main.class);
			break;
		case R.id.main_btn03:
			intent = new Intent(this, Ch13_Main.class);
			break;
		case R.id.main_btn04:
			intent = new Intent(this, Ch14_Main.class);
			break;
		case R.id.main_btn05:
			intent = new Intent(this, Ch15_Main.class);
			break;
		case R.id.main_btn06:
			intent = new Intent(this, Ch16_Main.class);
			break;
		case R.id.main_btn07:
			intent = new Intent(this, Ch17_Main.class);
			break;
		case R.id.main_btn08:
			intent = new Intent(this, Ch18_Main.class);
			break;
		case R.id.main_btn09:
			intent = new Intent(this, Ch19_Main.class);
			break;
		}
		startActivity(intent);
	}
}
